package com.future.future.commons.response;

/**
 * @Author: shinan
 * @Version: 1.8
 * @create: 2021/1/18 17:55
 * @Description: TODO
 */
public enum ErrorCode {

    /**
     * 系统未知异常
     */
    UN_KNOW_EXCEPTION(10000, "系统未知异常"),

    /**
     * 参数格式校验错误
     */
    VALID_EXCEPTION(10001, "参数格式校验错误");

    private final Integer code;
    private final String message;

    ErrorCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
